Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: group chat editing #499

Merged
merged 2 commits into from
Nov 27, 2023
Merged

fix: group chat editing #499

merged 2 commits into from
Nov 27, 2023

Conversation

agazso
Copy link
Contributor

@agazso agazso commented Nov 24, 2023

There was an issue that the group chat name and photo was not editable, it always changed back to the original.

This PR fixes that. The root cause of the issue was that when checking the signature we compared the uncompressed public key (which was returned from the signature) with the compressed signature that we store and therefore the check failed.

There is another issue that the ethers package uses public keys with 0x prefix, where the @noble/crypto package uses public keys without the 0x prefix. I added a helper function for comparison (arePublicKeysEqual) but unfortunately that only works with direct comparison and therefore less useful when using with arrays (e.g. includes).

Copy link

vercel bot commented Nov 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku-objects-playground ✅ Ready (Inspect) Visit Preview Nov 24, 2023 4:08pm

@agazso agazso merged commit c2f7534 into main Nov 27, 2023
3 checks passed
@agazso agazso deleted the fix/group-chat-edit branch November 27, 2023 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants